package n06;

public class N02 {
	public static void main(String[] args) {
		Object p1 = new Person2("张三", 20);
		System.out.println(p1);//这里p1相当于p1.toString()
		p1=new Student2("杨柳",18,"水环学院");
		System.out.println(p1.toString());
	}
}
